/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.library.service;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.library.dao.LibraryDao;
import com.thinkgem.jeesite.modules.library.entity.Library;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 图书馆信息Service
 * @author zhangc
 * @version 2018-01-07
 */
@Service
@Transactional(readOnly = true)
public class LibraryService extends CrudService<LibraryDao, Library>{

	public Library get(String id) {
		return super.get(id);
	}
	
	public List<Library> findList(Library library) {
		return super.findList(library);
	}
	
	public Page<Library> findPage(Page<Library> page, Library library) {
		return super.findPage(page, library);
	}
	
	@Transactional(readOnly = false)
	public void save(Library library) {
		super.save(library);
	}
	
	@Transactional(readOnly = false)
	public int delete(Library library) {
		return super.delete(library);
	}
	
}